<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            border: 1px solid #000;
            margin: 10px;
        }

        div:nth-of-type(1) {
            background: -webkit-radial-gradient(red, yellow);
        }

        div:nth-of-type(2) {
            background: -webkit-radial-gradient(top, red 0, orange 50%, yellow 70%);
        }

        div:nth-of-type(3) {
            background: -webkit-radial-gradient(50px 100px, circle, red 0, orange 50%, yellow 70%);
        }

        div:nth-of-type(4) {
            background: -webkit-radial-gradient(50px 100px, contain, red 0, orange 50%, yellow 70%);
        }
    </style>
</head>

<body>
    1.基础径向渐变
    <div></div>
    2.规定圆心坐标的径向渐变
    <div></div>
    3.规定大小\形状
    <div></div>
    4.设置关键字
    <div></div>
</body>

</html>